package com.ict.ms.config;

import java.nio.charset.Charset;

import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;
import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
 *  配置tomcat编码
 * @author TLC-PC
 *
 */


/**
 * 设置中间件的编码
 * @author TLC-PC
 *
 */

/**
 * 设置中间件的编码
 * @author TLC-PC
 *
 */

/**
 * 设置中间件的编码
 * @author TLC-PC
 *
 */
@Configuration
public class TomcatConfig {
	@Bean
    public EmbeddedServletContainerFactory servletContainer() {
        TomcatEmbeddedServletContainerFactory tomcat = new TomcatEmbeddedServletContainerFactory();
        tomcat.setUriEncoding(Charset.forName("UTF-8"));
        return tomcat;
    }

}
